
#!/bin/bash
BASEDIR=$(dirname "$0")
cd $BASEDIR/..

workPath="../install"

mkdir build
cd build
/home/yangwang/cmake/cmake-3.26.4-linux-x86_64/bin/cmake ../ \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DCMAKE_INSTALL_PREFIX=${workPath} \
    -DCMAKE_TOOLCHAIN_FILE=../compiler.arm.cmake
num=$(cat /proc/cpuinfo  | grep process | wc -l)
make -j${num} 
make install
cd -